import os

def verify_assets():
    static_dir = os.path.join('app', 'static')
    required_files = [
        os.path.join(static_dir, 'css', 'bootstrap.min.css'),
        os.path.join(static_dir, 'css', 'dataTables.bootstrap5.min.css'),
        os.path.join(static_dir, 'css', 'custom.css'),
        os.path.join(static_dir, 'js', 'jquery.min.js'),
        os.path.join(static_dir, 'js', 'bootstrap.bundle.min.js'),
        os.path.join(static_dir, 'js', 'jquery.dataTables.min.js'),
        os.path.join(static_dir, 'js', 'dataTables.bootstrap5.min.js'),
        os.path.join(static_dir, 'js', 'chart.min.js'),
        os.path.join(static_dir, 'js', 'asset-paths.js')
    ]
    
    missing_files = []
    for file_path in required_files:
        if not os.path.exists(file_path):
            missing_files.append(file_path)
            print(f"Missing: {file_path}")
        else:
            size = os.path.getsize(file_path)
            print(f"Found: {file_path} ({size} bytes)")
    
    if missing_files:
        print("\nMissing files:")
        for file in missing_files:
            print(f"  - {file}")
        return False
    
    print("\nAll assets exist!")
    return True

if __name__ == '__main__':
    verify_assets() 